<?php defined('SYSPATH') or die('No direct script access.');

class Controller_ErrorHandler extends Controller {

	public function action_showErrorMsg($code,$msg){
		$itemArray['Code'] = $code;
		$itemArray['Message'] = $msg;
		$entity = new Entity();
		$entity->entityName = "ErrorMessage";
		$entity->entityValue = $itemArray;
		$xml = XmlUtil::Factory()->entityToXml($entity,0,0);
		echo $xml;
	}
}
